package com.ruoyi.system.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.ShBannerPicture;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

@Data
public class ShBanner extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 发布用户id */
    private Long userId;

    @Excel(name = "发布用户")
    private String userName;

    @Excel(name = "商品名称")
    private String productTitle;

    @Excel(name = "商品描述")
    private String productDesc;

    @Excel(name = "商品详细描述")
    private String productDetail;

    @Excel(name = "是否视频")
    private Integer isVideo;

    @Excel(name = "显示顺序")
    private Integer orderNum;

    private String appId;

    private String order;
    private String orderType;

    private List<Long> ids;
    private List<ShBannerPicture> picList;
    private List<ShBannerPicture> vidList;
    private Long picId;
    private Long vidId;
    private String fileFj;
    private String vidUrl;

    private String minDiscount;
    private String maxDiscount;

    private String minPtype;
    private String maxPtype;

    private String createAtstart;
    private String createAtend;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("productTitle", getProductTitle())
                .append("productDesc", getProductDesc())
                .append("createTime", getCreateTime())
                .append("isVideo", getIsVideo())
                .toString();
    }
}
